package edu.mbb.netty.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class RpcCilentHandler extends ChannelInboundHandlerAdapter {

	private Object response;

	public Object getResponse() {
		return response;
	}

	public RpcCilentHandler() {

	}

	public void setResponse(Object response) {
		this.response = response;
	}

	@Override
	public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
		System.out.println(msg);
		response = msg;
	}
}
